package de.mhu.mandalaui.table;

import de.mhu.mandalaui.Component;
import de.mhu.mandalaui.actions.ClickAction;
import de.mhu.mandalaui.attributes.BooleanAttribute;

public abstract class AbstractTable extends Component {
	
	private TableHeader header = null;
	private ClickAction selectAction = null;
	
	public TableHeader getHeader() {
		return header;
	}

	public void setHeader(TableHeader header) {
		if (this.header != null) this.header.componentDetach();
		this.header = header;
		this.header.componentAttach(this);
	}

	public ClickAction getSelectAction() {
		return selectAction;
	}

	public void setSelectAction(ClickAction selectAction) {
		this.selectAction = selectAction;
	}
		
}
